package com.boot.main.mapper;

import com.boot.main.entity.BcomComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface BcomCommentMapper {
    List<BcomComment> getComments(@Param("currentSize") Integer currentSize, @Param("limit") Integer limit);
    List<BcomComment> getCommentsList();
    List<BcomComment> getCommentsByPostId(Long post_id);
    Integer getTotalCount();
    Integer saveComment(BcomComment comment);
    Integer deleteComment(@Param("id") Long id);
}
